package com.example.aopweaver.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import javax.sql.DataSource;

/**
 * @Author ifredomvip@gmail.com
 * @Date 2022/8/3 13:50
 * @Version 1.0.0
 * @Description
 **/
@ConfigurationProperties("spring.datasource")
@Data
@Component
public class JdbcProperties{
    private String driver;
    private String url;
    private String username;
    private String password;
}
